/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pojo;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 *
 * @author pvhuy
 */
@Entity
@Table(name=HinhThucThanhToan.TABLE_HINHTHUCTHANHTOAN)
public class HinhThucThanhToan extends Base{
    public static final String TABLE_HINHTHUCTHANHTOAN = "HinhThucThanhToan";

    protected static final String COLUMN_TENHINHTHUC = "TenHinhThuc";
    private static final int LENGTH_TENHINHTHUC = 45;
    @Column(name=COLUMN_TENHINHTHUC, length=LENGTH_TENHINHTHUC)
    private String tenHinhThuc;

    protected static final String COLUMN_CHUOIXMLTHANHTOAN = "ChuoiXmlThanhToan";
    @Column(name=COLUMN_CHUOIXMLTHANHTOAN)
    private String chuoiXmlThanhToan;

    protected static final String COLUMN_LOAIKHACHHANG = "MaLoaiKhachHang";
    @ManyToOne(cascade=CascadeType.ALL)
    @JoinColumn(name=COLUMN_LOAIKHACHHANG)
    private LoaiKhachHang loaiKhachHang;

    /**
     * @return the tenHinhThuc
     */
    public String getTenHinhThuc() {
        return tenHinhThuc;
    }

    /**
     * @param tenHinhThuc the tenHinhThuc to set
     */
    public void setTenHinhThuc(String tenHinhThuc) {
        this.tenHinhThuc = tenHinhThuc;
    }

    /**
     * @return the chuoiXmlThanhToan
     */
    public String getChuoiXmlThanhToan() {
        return chuoiXmlThanhToan;
    }

    /**
     * @param chuoiXmlThanhToan the chuoiXmlThanhToan to set
     */
    public void setChuoiXmlThanhToan(String chuoiXmlThanhToan) {
        this.chuoiXmlThanhToan = chuoiXmlThanhToan;
    }

    public LoaiKhachHang getLoaiKhachHang() {
        return loaiKhachHang;
    }

    public void setLoaiKhachHang(LoaiKhachHang loaiKhachHang) {
        this.loaiKhachHang = loaiKhachHang;
    }

}
